package com.sfc.client;

import com.sfc.client.business.SpiderManager;
import com.sfc.constants.Commands;
import org.apache.dubbo.common.extension.ExtensionLoader;

/**
 * @author lizhenwei
 * @version 1.0
 * @date 2021/4/13 18:16
 */
public class FestivalDemo {

    @org.junit.Test
    public void getFestival() {
        ExtensionLoader<SpiderManager> loader = ExtensionLoader.getExtensionLoader(SpiderManager.class);
        System.out.println("============================================");
        SpiderManager apple = loader.getExtension(Commands.getValue("AMAZON_MONTH"));
        apple.hander();
        System.out.println();
        System.out.println("============================================");
    }

}
